home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / PDriver / DLL / MkStubsOs < prev    next >
Text File  |  1995-07-31  |  3KB  |  137 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.AbortJob    \
  4.             o.CancelJob    \
  5.             o.CancelJobW    \
  6.             o.CheckFeatu    \
  7.             o.CurrentJob    \
  8.             o.DrawPage    \
  9.             o.EndJob    \
  10.             o.EnumerateJ    \
  11.             o.GetRectang    \
  12.             o.GiveRectan    \
  13.             o.Info    \
  14.             o.InsertIllu    \
  15.             o.PageSize    \
  16.             o.PrintrName    \
  17.             o.ScreenDump    \
  18.             o.SelectIllu    \
  19.             o.SelectJob    \
  20.  
  21.  
  22. LibName        =    PDriver
  23.  
  24.  
  25.  
  26. # Template makefile to make all .o files
  27. # and the SDLS Stubs file for DeskLib
  28. # sublibraries.
  29. # Julian Smith 16 Mar 1995.
  30.  
  31.  
  32. # The macro $(ObjectFiles) should be set at the 
  33. # start of this file, to be a space-separated
  34. # list of object files.
  35. # This is done by 'Makatic'.
  36.  
  37.  
  38. # The macro $(LibName) should also be set at the 
  39. # start of this file, to be the name of the 
  40. # DeskLib sublibrary.
  41. # This is done by 'Makatic'.
  42.  
  43. # Compiler and linker flags, These can be anything. 
  44. # All flags required by Straylight (eg CC -zM and
  45. # Link -rmf) are included in the macros $(CC) and
  46. # $(LINK).
  47. #
  48. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  49. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  50.  
  51.  
  52. # Macros for commands, including the Straylight
  53. # tool 'cdll'. Note that DRLink doesn't seem to
  54. # work with the SDLS.
  55. #
  56. CC        =    cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
  57. ASM        =    ObjAsm $(ASMFlags)
  58. CDLL        =    cdll
  59. LINK        =    link
  60. AS        =    as -dde -throwback
  61.  
  62.  
  63. # filename of DLL Stubs aof file. This is linked with client apps.
  64. DLL_Stubs    =    Stubs
  65.  
  66.  
  67. # Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
  68. #
  69. # DLL_Def:        Standard definition file as per SDLS docs.
  70. # DLL_OtherStubsSource    Assembler source to be partially linked into
  71. #            the final stubs file. This will force linking
  72. #            in of stubs from any other DLLs used by this
  73. #            library when a client application is built.
  74. # DLL_PlainStubs    The vanilla stubs file created by SDLS's cdll.
  75. # DLL_OtherStubsObject    Assembled from DLL_OtherStubsSource. This
  76. #            simply imports __DeskLib_SDLS_Stubs_<libname>'s
  77. #            for all DeskLib DLLs used by this library, and
  78. #            exports __DeskLib_SDLS_Stubs_<thislibname>.
  79. #
  80. DLL_Def            =    ^.DLLDef
  81. DLL_OtherStubsSource    =    ^.OtherStubs
  82.  
  83. DLL_PlainStubs        =    PlainStubs
  84. DLL_OtherStubsObject    =    OSObj
  85.  
  86. # -------------------------------------------------------
  87. # Everything below here should probably not be changed...
  88. # -------------------------------------------------------
  89.  
  90.  
  91.  
  92. # Now all the rules...
  93.  
  94.  
  95. # Here's the two things we want to make...
  96. #
  97. All:    $(DLL_Stubs) $(ObjectFiles)
  98.  
  99. $(DLL_Stubs):    $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  100.     $(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  101.  
  102. $(DLL_PlainStubs):    $(DLL_Def)
  103.     $(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
  104.  
  105.  
  106. #$(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  107. #    $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
  108.  
  109. $(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  110.     $(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject) 
  111.  
  112.  
  113. $(DLL_Def):    
  114.     | Warning: No DLL definition file exists.
  115.     | Creating a default DLL definition file: $(DLL_Def)
  116.     | This will have to be altered by hand.
  117.     $(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
  118.  
  119.  
  120.  
  121. # Rule for compiling C source code for a Straylight dynamically-linked library.
  122.  
  123. VPATH = @.^
  124.  
  125. .SUFFIXES:    .o .c .s
  126.  
  127. .c.o:
  128.     $(CC) -o $@ $<
  129.  
  130. .s.o:
  131.     $(ASM) $(ASMFlags) -from $< -to $@
  132.  
  133.  
  134.  
  135. # Dynamic dependencies:
  136.